import request from '@/utils/request'

// 查询会员-充值列表
export function listXyrecharge(query) {
  return request({
    url: '/xyrecharge/xyrecharge/list',
    method: 'get',
    params: query
  })
}

// 查询会员-充值详细
export function getXyrecharge(id) {
  return request({
    url: '/xyrecharge/xyrecharge/' + id,
    method: 'get'
  })
}

// 新增会员-充值
export function addXyrecharge(data) {
  return request({
    url: '/xyrecharge/xyrecharge',
    method: 'post',
    data: data
  })
}

// 修改会员-充值
export function updateXyrecharge(data) {
  return request({
    url: '/xyrecharge/xyrecharge',
    method: 'put',
    data: data
  })
}

// 删除会员-充值
export function delXyrecharge(id) {
  return request({
    url: '/xyrecharge/xyrecharge/' + id,
    method: 'delete'
  })
}
